/*
 * @Author: 王坤
 * @LastEditors: 王坤
 * @Description: 文件相关接口
 */
import { request } from './request';

// 文件上传
export function fileUpload(data: any, url: string) {
  return request({
    url: url || '/v1/app/file/operate/upload',
    method: 'post',
    data
  });
}

// 文件下载
export function fileDownload(params: any, url: string) {
  return request({
    url: url || '/v1/app/file/operate/download',
    method: 'get',
    params,
    responseType: 'blob'
  });
}
